Extension point fragments
In component org.nuxeo.theme.services.ThemeService
Documentation
Extension Point for registering new types of Fragments. Fragments produce Model data that is rendered by Views.
The XML syntax is:
<fragment name="fragment name">
<class>org.nuxeo.theme.fragments.FragmentClass</class>
<model-type>model type</model-type>
</fragment>
where: - 'class' is the Java class implementing org.nuxeo.themes.fragments.Fragment - 'model-type' is the type of Model data produced by the Fragment.
The Model type information is optional, however it determines the types of Views that the Fragment will be renderable with.
Contribution Descriptors
- Class: org.nuxeo.theme.fragments.FragmentType
Existing Contributions
Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.
-
<extension point="fragments" target="org.nuxeo.theme.services.ThemeService"> <fragment name="contextual links fragment"> <class>org.nuxeo.webengine.sites.fragments.ContextualLinkFragment</class> <model-type>contextual-link</model-type> <dynamic>true</dynamic> </fragment> <fragment name="all webpages fragment"> <class>org.nuxeo.webengine.sites.fragments.AllWebpageFragment</class> <model-type>webpage</model-type> <dynamic>true</dynamic> </fragment> <fragment name="minisite last published fragment"> <class>org.nuxeo.webengine.sites.fragments.MinisiteLastPublishedFragment</class> <model-type>webpage</model-type> <dynamic>true</dynamic> </fragment> <fragment name="minisite last comments fragment"> <class>org.nuxeo.webengine.sites.fragments.MinisiteLastCommentsFragment</class> <model-type>webpage-comment</model-type> <dynamic>true</dynamic> </fragment> <fragment name="page last comments fragment"> <class>org.nuxeo.webengine.sites.fragments.PageLastCommentsFragment</class> <model-type>comment</model-type> <dynamic>true</dynamic> </fragment> <fragment name="search results fragment"> <class>org.nuxeo.webengine.sites.fragments.SearchResultsFragment</class> <model-type>search</model-type> <dynamic>true</dynamic> </fragment> <fragment name="tags fragment"> <class>org.nuxeo.webengine.sites.fragments.TagFragment</class> <model-type>tag</model-type> <dynamic>true</dynamic> </fragment> <fragment name="tags cloud fragment"> <class>org.nuxeo.webengine.sites.fragments.TagCloudFragment</class> <model-type>tag cloud</model-type> <dynamic>true</dynamic> </fragment> </extension>
-
<extension point="fragments" target="org.nuxeo.theme.services.ThemeService"> <fragment name="generic fragment"> <class>org.nuxeo.theme.fragments.GenericFragment</class> <dynamic>false</dynamic> </fragment> <fragment name="text fragment"> <class>org.nuxeo.theme.fragments.TextFragment</class> <model-type>html</model-type> <dynamic>true</dynamic> </fragment> <fragment name="region fragment"> <class>org.nuxeo.theme.fragments.RegionFragment</class> <model-type>region</model-type> <dynamic>false</dynamic> </fragment> </extension>
-
<extension point="fragments" target="org.nuxeo.theme.services.ThemeService"> <fragment name="recent blogposts fragment"> <class>org.nuxeo.webengine.blogs.fragments.RecentBlogPostsFragment </class> <model-type>blogpost</model-type> <dynamic>true</dynamic> </fragment> <fragment name="blog site archive fragment"> <class>org.nuxeo.webengine.blogs.fragments.BlogSiteArchiveFragment </class> <model-type>blogSiteArchive</model-type> <dynamic>true</dynamic> </fragment> </extension>